﻿using BUS;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GUI
{
    public partial class frmMonAn : Form
    {
        MonAnBUS maBUS;
        ArrayList dsMonAn;

        public frmMonAn()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void reLoadData()
        {
            dsMonAn = maBUS.getDsMonAn();
            dgvDanhSach.DataSource = dsMonAn;
        }

        private void frmMonAn_Load(object sender, EventArgs e)
        {
            maBUS = new MonAnBUS();
            reLoadData();
        }
    }
}
